import React from 'react'
import { useSearchParams } from 'react-router-dom'
export default function Detail() {
    const [search,setSearch] = useSearchParams()
    console.log(search.get('id'))
    const id = search.get('id')
    const title = search.get('title')
    const describe = search.get('describe')
    return (
        <div>
            <h2>{id}</h2>
            <h2>{title}</h2>
            <p>
                {describe}
            </p>
        </div>
    )
}
